Sets the delivery rate of events in microseconds for the given sensor.
This function has to be called after {@link ASensorEventQueue_enableSensor}.
Note that this is a hint only, generally event will arrive at a higher
rate. It is an error to set a rate inferior to the value returned by
ASensor_getMinDelay().
\param queue {@link ASensorEventQueue} to which sensor event is delivered.
\param sensor {@link ASensor} of which sampling rate to be updated.
\param usec sensor sampling period (1/sampling rate) in microseconds
\return 0 on sucess or a negative error code on failure.
Sets the delivery rate of events in microseconds for the given sensor.
This function has to be called after {@link ASensorEventQueue_enableSensor}. Note that this is a hint only, generally event will arrive at a higher rate. It is an error to set a rate inferior to the value returned by ASensor_getMinDelay().
\param queue {@link ASensorEventQueue} to which sensor event is delivered. \param sensor {@link ASensor} of which sampling rate to be updated. \param usec sensor sampling period (1/sampling rate) in microseconds \return 0 on sucess or a negative error code on failure.